<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/bootstrap.min.css" />
    <script type="text/javascript" src="/Public/Admin/extend/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/extend/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/extend/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>上传照片预览</title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">审核部>审批申请</div>
        <div class="content applylist">
            <div class="box">
                <h1>审核主管审核列表</h1>
                <div class="list-block">
                    <div class="row">
                    <form action='<?php echo U("Check/admin");?>' class="form-inline text-right m-b-5 fr">
                        <label>用户名称:</label> <input type="text" name="user_name" placeholder="请输入名称" value=<?php echo ($_GET['user_name']); ?> >
                        <label>手机号:</label> <input type="text" name="telephone" placeholder="请输入手机号" value=<?php echo ($_GET['telephone']); ?> >
                        <label>录入时间:</label> <input type="date" name="create_time_beg" placeholder="请选择时间" value=<?php echo ($_GET['create_time_beg']); ?>><em>~</em>
                        <input type="date" name="create_time_end" placeholder="请选择时间" value=<?php echo ($_GET['create_time_end']); ?>>
                       <!--  <label>状态:</label> <input type="text" name="" placeholder="请选择用户状态"> -->
                       <label>状态:</label>
                        <input type="text" value='待审核主管审核' disabled>
                        <!--<select name='status'>-->
                            <!--<option value='-1'>状态</option>-->
                            <!--<option value='1' <?php if(($_GET['status']) == "1"): ?>selected<?php endif; ?> >启用</option>-->
                            <!--<option value='0' <?php if(($_GET['status']) == "0"): ?>selected<?php endif; ?> >禁用</option>-->
                        <!--</select>-->
                        <button class="search" type="submit"><img src="/Public/Admin/images/search.png" alt="">查询</button>
                    </form>
                    </div>
                     <div class="row">
                        <table class="list">
                            <tr>
                                <th>编号</th>
                                <th>申请人</th>
                                <th>身份证号</th>
                                <th>手机号</th>
                                <th>业务部门</th>
                                <th>申请时间</th>
                                <th>状态</th>
                                <th>进入当前状态时间</th>
                                <th>贷款银行</th>
                                <th>操作</th>
                            </tr>
                            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$user): $mod = ($i % 2 );++$i;?><tr>
                                    <td><?php echo ($user["entry_no"]); ?></td>
                                    <td><?php echo ($user["user_name"]); ?></td>
                                    <td><?php echo ($user["identity_no"]); ?></td>
                                    <td><?php echo ($user["telephone"]); ?></td>
                                    <td><?php echo ($user["department_name"]); ?></td>
                                    <td><?php echo (date('Y-m-d H:i:s', $user["create_time"])); ?></td>
                                    <td>
                                        待审核主管审核
                                    </td>
                                    <td><?php echo (date('Y-m-d H:i:s', $user["create_time"])); ?></td>
                                    <td><?php echo ($user["bank_short_name"]); ?></td>
                                    <td class="check" data-id='<?php echo ($user["id"]); ?>'>审核</td>
                                    <!-- <td><a href="<?php echo U('Check/admin_check?user_id='.$user['id']);?>">审核</a></td> -->
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                        </table>
                    </div>
                    <?php echo ($page); ?>
                </div>
            </div>
        </div>
    </div>
</div>
    <script type="text/javascript">
      $('.check').click(function(){
         var id=$(this).data('id'),check_status=<?php echo ((isset($user["check_status"]) && ($user["check_status"] !== ""))?($user["check_status"]):0); ?>;
         var r=confirm('是否开始审核')
         if(r==true){
               $.post('<?php echo U("Inside/setCheck_status");?>',{id:id,Cstatus:check_status},function(data){
                if(data.status==1){
                  //  alert(data.info);
                   location.href = '<?php echo U("Check/admin_check");?>?user_id='+id;
                }else if(data.status==0){
                   alert(data.info);
                   location.reload();
                }else{
                    alert(data);
                     location.href='<?php echo U("Check/not_index");?>?check_status='+check_status;
                }
             });
         }
     
      });
</script>
</body>
</html>